package com.example.hanchen.yongkanggy.utils;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class NetMonitor {
    /**
     * 没有连接网络
     */
    public static final int NETWORK_NONE = 0;
    /**
     * 移动网络
     */
    public static final int NETWORK_MOBILE = 2;
    /**
     * 无线网络
     */
    public static final int NETWORK_WIFI = 1;





    public static int getNetWorkState(Context context) {
        // 得到连接管理器对象
        ConnectivityManager connectivityManager = (ConnectivityManager) context
                .getSystemService(Context.CONNECTIVITY_SERVICE);



        return NETWORK_NONE;
    }
}
